import Request from '@/utils/request';
// import quest from '@/utils/request';
// import RequestUtil from '@/utils/request-util';

/**
 * 用户管理api
 *
 * @author fengshuonan
 * @date 2021/4/1 16:06
 */

export class GdBaseInfoApi {
  // 获取
  static find(params) {
    return Request.get('/feathers/gd-base-info', params);// /feathers/后面跟的是自己对应接口名
  }
  // 添加
  static addBasicInfo(params) {
    return Request.post('/feathers/gd-base-info', params);
    // return RequestUtil.postAndLoadData('/feathers/gd-base-info', params);
  }
    // 删除
    static delete(id) {
      return Request.delete(`/feathers/gd-base-info/${id}`);//
    }
    // 编辑
    static editBasicInfo(id,params) {
      return Request.patch(`/feathers/gd-base-info/${id}`,params);
      // return RequestUtil.postAndLoadData('/feathers/gd-base-info', params);
    }
    // 查询
    static search(params) {
      return Request.get(`/feathers/gd-base-info?jueyuangongju=${params}`);//
    }
}


